﻿using System.Collections.Generic;

namespace DomainModel
{
    public class Group : EntityBase
    {
        private readonly List<User> _students;
        private readonly List<Subgroup> _subgroups;

        public virtual string GroupName { get; set; }
        public virtual User Praepostor { get; set; } //староста
        public virtual User Curator { get; set; } //куратор
        public virtual IEnumerable<User> Students
        {
            get { return _students; }
        }
        public virtual IEnumerable<Subgroup> Subgroups
        {
            get { return _subgroups; }
        }

        protected Group()
        {
            _students = new List<User>();
            _subgroups = new List<Subgroup>();
        }

        public Group(string name)
            : this()
        {
            GroupName = name;
        }

    }
}
